package day05;
public class BubbleSort {
	public static void main(String[] args) {
		int[] a={2, 7, 8, 1, 3, 9, 8, 4, 5,0 };
		for(int i=0; i<a.length-1; i++){
			for(int j=0; j<a.length-i-1; j++){
				if(a[j]>a[j+1]){
					int temp=a[j];
					a[j]=a[j+1];
					a[j+1]=temp;				
				}				
			}
		}
		for(int j=0;j<a.length;j++){
			System.out.print(a[j]+" ");
		}
	}
}
